From: Platonides Date: Wed, 29 Dec 2010 16:42:46 +0000 (+0000) Subject: (Bug 26458) Section edit links appear on pages that user does not have right to edit ( X-Git-Tag: 1.31.0-rc.0~33004 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=ed4c31bd4d0d3c3320461308bb295501ab7183ef;p=lhc%2Fweb%2Fwiklou.git (Bug 26458) Section edit links appear on pages that user does not have right to edit ( --- diff --git a/includes/Article.php b/includes/Article.php index 5a5677745a..8332cf2cce 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1478,7 +1478,7 @@ class Article { $parserOptions->setIsPrintable( $wgOut->isPrintable() ); # Don't show section-edit links on old revisions... this way lies madness. - if ( !$this->isCurrent() || $wgOut->isPrintable() ) { + if ( !$this->isCurrent() || $wgOut->isPrintable() || !$this->mTitle->quickUserCan( 'edit' ) ) { $parserOptions->setEditSection( false ); }